<include file="Public:header" />

<script language="JavaScript">
    ifcheck = true;

    function CheckAll(form) {
        for (var i = 0; i < form.elements.length - 2; i++) {
            var e = form.elements[i];
            e.checked = ifcheck;
        }
        ifcheck = ifcheck == true ? false : true;
    }
</script>

<div class="ncenter_box">
<div class="accounttitle"><h1>产品分类管理</h1></div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="left">
	<td><input type="button" name="action" value="管理产品" onClick="window.location='__URL__/pro_index/'" class="btn1"></td>
</tr>
</table>
<table width="100%" class="tab3" border="0" cellpadding="3" cellspacing="0" id="tb1">
<form action="__URL__/cptype_zz" method="post" name="form3" id="form3">
<tr align="center">
	<th width="10%" ></th>
	<th width="60%" nowrap align="left">&nbsp; 一级分类名</th>
	<th width="20%" nowrap >操作</th>
	</tr>
<volist name="list" id="vo">
<tr align="center"> 
	<td><div align="center">
	  <input type="checkbox" name="checkbox[]" value="{$vo['id']}" class="">
	  </div>
	</td>
	<td nowrap align="left"><a href="__URL__/look_two/id/{$vo.id}"  style="color: blue">{$vo['tpname']}</a></td>
	<td><a href="__URL__/cptype_edit/EDid/{$vo['id']}" style="color: blue">编辑</a></td>
	</tr>
</volist>
<tr><input name="allcheckboxs" type="hidden" value="">
	<td colspan=4>
    <input name="全选" type="button" class="btn1 anniu" id="全选" onclick="CheckAll(this.form)" value="全选" />&nbsp; &nbsp;
	  <input type="submit" name="action" value="添加" onClick="return allcheckbox();" class="btn1 anniu">&nbsp; &nbsp;
	  <input type="submit" name="action" value="删除" onClick="return allcheckbox();" class="btn1 anniu">
		<span style="color: red;font-size: 16px;">&nbsp;&nbsp;为了避免数据的冗沉，请在删除上级分类前，先删出在此级别下的子分类</span>
	</td>
</tr>
</form>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
	<td>{$page}</td>
</tr>
</table>
</div>
<include file="Public:footer" />
